Object Debug Drawing Functions
Listed below are the Built-in Functions that can be used during the "Debug Drawing Phase" of an Object. They are
assigned to an Object Type by entering their ID in that Type's entry in the Object Def File.
Some of these Functions can be used in combination with any other Built-in Object Function,
some only some, and some are limited to only one combination. This is determined by
how the Functions affect the Object, and what types of "Extra Variables" each one requires.
Scripted Debug Drawing Functions may be used instead of the Built-in Functions, or in
addition to them. If both Built-in and
Scripted Debug Drawing Functions are used, the Built-in Function is processed first.
Index:
0 - _ODebugD_None
1 - _ODebugD_FirstFrame
2 - _ODebugD_PlaneSwitchH
3 - _ODebugD_PlaneSwitchV
4 - _ODebugD_Tiled
Descriptions:
0 - _ODebugD_None
This Function does absolutely nothing. It is used to exclude a Built-in Function.
1 - _ODebugD_FirstFrame
This function draws the first Sprite Frame in the first Sprite Set of the Object.
Drawing Direction is based on the "Player_?_Dir" variables for the "Current Player"
2 - _ODebugD_PlaneSwitchH
This is a more Object-specific drawer, which draws the first Sprite Frame from
its first Sprite Set four times horizontally, spaced 16 pixels apart, centered
at its position.
3 - _ODebugD_PlaneSwitchV
This is a more Object-specific drawer, which draws the first Sprite Frame from
its first Sprite Set four times vertically, spaced 16 pixels apart, centered
at its position.
4 - _ODebugD_Tiled
This Function draws an Object based on Tile Map data stored within its Object Variables.
This map data can easily be obtained from within the Level Editor,
and its exact placement in the variable listing is adjustable.
This Function is primarily used for Tiled Path Objects.
Expected Values:
Extra Variables:
0- Plat_Start
This variable specifies the starting location of the Tile Map data within the "Extra Variables".
It is the ID number of the "Extra Variable" where the Map Width is listed, which is followed by Map Height, the Plane ID, and the Tile ID data itself.
[...]- Unused
Variables between "Plat_Start" and the variable whose ID is stored within "Plat_Start" are unused by this Function, and so can be used for anything.
[Plat_Start]+0- Width
[Plat_Start]+1- Height
This is the start of the Tile Map data; it begins at the "Extra Variable" whose ID is stored in "Plat_Start" (Ex: if the value of "Plat_Start" is "8", then "E8" will hold width, "E9" will hold height, etc).
These are the width and height (in tiles) of the Tile Map.
[Plat_Start]+2- Plane
This value is not used by this Function, but is used by OCol_Tiled.
[Plat_Start]+[...]- TileID
The Tile IDs that make up the Tile Map are listed at this point. There are width*height of these entries (Ex: if "width" is "5", and "height" is "10", then there are 50 of these entries)